home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
-
- if [ "$1" = install ] || [ "$1" = upgrade ]; then
- if dpkg --compare-versions "$2" lt-nl "0.5.24"; then
- # migrate old rc symlinks
- for l in 0 1 6; do
- if [ -L /etc/rc$l.d/K01usplash ] && ! [ -e /etc/rc$l.d/K02usplash ]; then
- mv /etc/rc$l.d/K01usplash /etc/rc$l.d/K02usplash
- fi
- done
- fi
-
- if dpkg --compare-versions "$2" lt-nl "0.5.41"; then
- # Merged into a single config
- rm -f /etc/init/usplash-down.conf
- fi
- fi
-
- # Automatically added by dh_installinit
- if [ "$1" = install ] || [ "$1" = upgrade ]; then
- if [ -e "/etc/init.d/usplash" ] && [ ! -L "/etc/init.d/usplash" ]; then
- if [ "`md5sum \"/etc/init.d/usplash\" | sed -e \"s/ .*//\"`" != \
- "`dpkg-query -W -f='${Conffiles}' usplash | sed -n -e \"\\\\' /etc/init.d/usplash '{s/ obsolete$//;s/.* //p}\"`" ]
- then
- echo "Obsolete conffile /etc/init.d/usplash has been modified by you, renaming to .dpkg-bak"
- mv -f "/etc/init.d/usplash" "/etc/init.d/usplash.dpkg-bak"
- else
- rm -f "/etc/init.d/usplash"
- fi
- fi
- fi
- # End automatically added section
-
-